package com.mall.untils;

public class TextMessage {
	
	public static String get_textMessage(String fromUsername,String toUsername,int time,String content){
		StringBuffer sbu=new StringBuffer();
		sbu.append("<xml>                                                ");
		sbu.append("<ToUserName><![CDATA["+fromUsername+"]]></ToUserName>          ");
		sbu.append("<FromUserName><![CDATA["+toUsername+"]]></FromUserName>    ");
		sbu.append("<CreateTime>"+time+"</CreateTime>                    ");
		sbu.append("<MsgType><![CDATA[text]]></MsgType>                  ");
		sbu.append("<Content><![CDATA["+content+"]]></Content>                  ");
		sbu.append("</xml>                                               ");
		return sbu.toString();
	}

}
